<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head th:include="student/common :: commonhead">
    <!--<div th:replace="student/common :: commonhead"></div>-->
</head>
<head>
    <title>修改作业</title>
    <!--这里写这个页面单独需要的css-->
</head>
<body class="sticky-header">

<section>
    <!--  引入左侧边  -->
    <div th:replace="student/common :: left"></div>

    <div class="main-content">
        <div th:replace="student/common :: header-section"></div>
        <!--这里开始写东西-->
        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">
                            作业要求
                            <span class="tools pull-right">
                                <a class="fa fa-chevron-down" href="javascript:;"></a>
                                <a class="fa fa-times" href="javascript:;"></a>
                            </span>
                        </header>
                        <div class="panel-body">
                            <div class="form">
                                <form action="#" class="form-horizontal">
                                    <div class="form-group">
                                        <div class="col-sm-12">
                                            <textarea class="form-control" disabled rows="6" th:text="${homework.homework.hwQuestion}"></textarea>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <section class="panel">
                        <header class="panel-heading">
                            我的答案
                            <span class="tools pull-right">
                            <a class="fa fa-chevron-down" href="javascript:;"></a>
                            <a class="fa fa-times" href="javascript:;"></a>
                            </span>
                        </header>
                        <div class="panel-body">
                            <form th:action="@{/student/doHomework}" method="post" class="form-horizontal " enctype="multipart/form-data">
                                <input type="hidden" name="hwId" th:value="${homework.hwId}">
                                <input type="hidden" name="stuId" th:value="${homework.stuId}">
                                <input type="hidden" name="hwsMark" th:value="${homework.hwsMark}">
                                <input type="hidden" name="hwsFileName" th:value="${homework.hwsFileName}">
                                <input type="hidden" name="hwsState" value="0">
                                <div class="form-group">
                                    <div class="col-md-12">
                                        <textarea class="wysihtml5 form-control" rows="9" name="hwsAnswer" th:text="${homework.hwsAnswer}"></textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-12">
                                        <label for="extra">上传附件</label>
                                        <input type="file" id="extra" name="file">
                                        <div class="pull-right">
                                            <button type="submit" th:text="提交" class="btn btn-success"></button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

    </div>
</section>

<div th:replace="student/common :: commonjs"></div>

<script type="text/javascript" src="js/ckeditor/ckeditor.js" th:src="@{/js/ckeditor/ckeditor.js}"></script>

<script type="text/javascript" src="js/bootstrap-wysihtml5/wysihtml5-0.3.0.js"
        th:src="@{/js/bootstrap-wysihtml5/wysihtml5-0.3.0.js}"></script>
<script type="text/javascript" src="js/bootstrap-wysihtml5/bootstrap-wysihtml5.js"
        th:src="@{/js/bootstrap-wysihtml5/bootstrap-wysihtml5.js}"></script>

</body>
</html>